/*************************************************************************
	> File Name: main.cc
	> Author: Joker
	> Mail: mahongtao@foxmail.com 
	> Created Time: 2020-09-21 22:30:18
 ************************************************************************/

#include "Bridge.h"

#include <iostream>
using namespace std;

void test0(){
    ConcreateImplementorA * pImplA = new ConcreateImplementorA();
    Abstraction * pAbstraction1 = new Abstraction(pImplA);
    pAbstraction1->Operation();

    ConcreateImplementorB * pImplB = new ConcreateImplementorB();
    Abstraction * pAbstraction2 = new Abstraction(pImplB);
    pAbstraction2->Operation();

    delete pAbstraction1;
    delete pAbstraction2;
}
 
int main(int argc,char *argv[])
{
    test0();
    return 0;
}
